<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  	<%@include file="/res/include/base-head.jsp"%>
  	<%@include file="/res/include/jquery-easyui.jsp"%>
  	<script type="text/javascript" src="${pageContext.request.contextPath}/res/js/mall/shopCommunity.js"></script>
  </head>
  <body>
<div class="page_title clearfix">
    <h2>修改店铺关联的社区</h2>
</div>
<div class="form_item topic_add">
   <form id="data-form">
    <dl>
        <dt>店铺名称：</dt>
        <dd>${shop.name}</dd>
    </dl>
    <dl class="dl_upload">

		<dt>选择社区：</dt>
		<dd>
			<p>
				<input type="button" id="workselect" value="添加社区"
					class="upload_btn" onclick="admin.shopCommunity.chooseCommunity()" />
			</p>
			<div class="datagrid_box">
				<table cellpadding="0" cellspacing="0" width="100%" class="order_table">
					<thead>
						<tr>
							<th>社区名称</th>
							<th>创建时间</th>
							<th>社区id</th>
							<th>社区地址</th>
							<th></th>
						</tr>
					</thead>
					<tbody id="aa">
                       <c:forEach var="sc" items="${mallShopCommunityVoList}">
                       <tr>
                       <td><input type="hidden" id="${sc.communityBaseVo.id }" name="communityIdList" value="${sc.communityBaseVo.id }"/>
                       <dl class="t_user"><dt><p class="img"><img src="${sc.communityBaseVo.pathImgs }" alt="" /></p></dt>
                       <dd>${sc.communityBaseVo.name}</dd></dl></td>
			           <td><fmt:formatDate pattern="yyyy-MM-dd hh:mm:ss" value="${sc.communityBaseVo.newAt}" /></td>
			           <td>${sc.communityBaseVo.id}</td>
			           <td>${sc.communityBaseVo.address}
			           </td>
			           <td><a href="javascript:;" class="cblue" onclick="admin.shopCommunity.removeTr(this)">删除</a></td></tr>
                       </c:forEach>
					</tbody>
				</table>
			</div>
		</dd>
	</dl>
    </form>
    <p class="page_btn"><input type="button" id="saveCommunity" value="保存" class="btn_black hide" onclick="admin.shopCommunity.doUpdate('${shop.id}');"/></p>
</div>
<script type="text/javascript">
</script>
  </body>
</html>
